package com.buddy.jni.demo09;

/**
 * 回调Java构造器来创建一个新的java对象
 */
public class JNIConstructor {
    static {
        System.loadLibrary("jni_constructor");
    }

    // Native method that calls back the constructor and return the constructed object.
    // Return an Integer object with the given int.
    private native Integer getIntegerObject(int number);

    public static void main(String args[]) {
        JNIConstructor obj = new JNIConstructor();
        System.out.println("In Java, the number is :" + obj.getIntegerObject(9999));
    }
}
